package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Employee;

import java.util.Map;

public interface EmployeeService extends IService<Employee> {
    /**
     * 管理端员工登录
     * @param employee
     * @return
     */
    Map checkLogin(Employee employee);

    //--T2-1：添加员工
    boolean addEmployee(Employee employee,Employee admin);
    //--T2-2：分页查询----
    IPage<Employee> queryPage(Map map);
    //--T2-3：禁用账号---
    boolean updataEmployee(Employee employee, Employee admin);

    //--T2-4-1：id查找
    Employee selectByIdEmployee(Long id);


}
